]> dgit.raspbian.org Git - gnome-shell.git/commit
st-widget: Introduce widget resource scale
authorJonas Ådahl <jadahl@gmail.com>
Thu, 11 May 2017 04:30:04 +0000 (06:30 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Fri, 1 Mar 2019 17:12:52 +0000 (17:12 +0000)
commit9f4ae9618ae6b5d73c48c8d43976e4b0e72b9863
treec43e6498188ee938f5f774094fa288c472233426
parent3590af15bb0cbf62c2f225eac1ceef4c9894cf16
st-widget: Introduce widget resource scale

This commit makes StWidget manage the scale of which its associated
resources should be multiplied with. The resource scale is calculated
by clutter, and is retrieved by clutter_actor_get_resource_scale(). Due
to the resource scale not always being available, the getter may fail,
and the actual widget that draws the content will have to deal with
this situation.

As the resource scale depends on where on the stage the widget is drawn,
the resource scale will in general be available once the widget is
mapped.

https://bugzilla.gnome.org/show_bug.cgi?id=765011
src/st/st-widget.c
src/st/st-widget.h